package com.club.football.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import static com.club.football.common.CommonConstants.NO_CHOOSE_MSG;
import static com.club.football.common.CommonConstants.NULL_MSG;

/**
 * 球队将数据保存到
 *
 * @author 1
 * @date 2024/01/10
 */
@Data
public class TeamSaveDto {
    /**
     * 球队ID
     */
    private Long teamId;

    /**
     * 球队名称
     */
    @NotBlank(message = NULL_MSG + "球队名称")
    @Length(max = 100, min = 1, message = "球队名称不能少于{min}或超过{max}个字符")
    private String name;

    /**
     * 俱乐部ID
     */
    @NotNull(message = NO_CHOOSE_MSG + "俱乐部")
    private Long clubId;

    /**
     * 团队标识
     */
    private String teamLogo;
}
